package vip.lsjscl.flowboot.workflow.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import vip.lsjscl.flowboot.workflow.entity.DKWorkflow;

import java.util.Optional;

/**
 * 工作流存储库
 *
 * @author zhangxingju
 * @date 2025/02/14
 */
@Repository
public interface DKWorkflowRepository extends JpaRepository<DKWorkflow, String> {
    Optional<DKWorkflow> findByCode(String code);

    boolean existsByCode(String code);
} 